package com.jr9z.jrjz.service.impl;

import com.jr9z.jrjz.dao.CredentialsMapper;
import com.jr9z.jrjz.entity.Credentials;
import com.jr9z.jrjz.service.CredentialsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:Mrzhang
 * @Description:
 * @Date:2019.05.14 22:38
 **/

@Service
public class CredentialsServiceImpl implements CredentialsService{

    @Autowired
    private CredentialsMapper credentialsMapper;

    @Override
    public List<Credentials> getCredentialList() {
        return credentialsMapper.getCredentialList();
    }

    @Override
    public int addCredential(Credentials credentials) {
        return credentialsMapper.addCredential(credentials);
    }

    @Override
    public int deleteCredential(Integer id) {
        return credentialsMapper.deleteCredential(id);
    }
}
